﻿using SimpleServiceBus.Endpoint;
using SimpleServiceBus.Utilities;

namespace SimpleServiceBus.Endpoint
{
    public abstract class EndpointServiceBase : BackgroundServiceBase, IEndpointService
    {
        #region IEndpointService Members

        public IMessagingEndpoint Endpoint { get; set; }

        //Exposed for convenience and easier mocking during testing.
        public virtual EndpointServiceManager ServiceManager
        {
            get { return Endpoint.LocalServices; }
        }

        #endregion
    }
}